package com.guess.study.designpattern.singleton;

/**
 * Created by tianran on 2019-06-04.
 */
public class LazyThreadUnsafeSingleton {

    private static LazyThreadUnsafeSingleton singleton;

    private LazyThreadUnsafeSingleton() {
        System.out.println("LazyThreadUnsafeSingleton Constructor");
    }

    public static LazyThreadUnsafeSingleton getInstance() {
        if (singleton == null) {
            singleton = new LazyThreadUnsafeSingleton();
        }
        return singleton;
    }

}
